package com.zhuangjie.rider.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author zhuangjie
 * @since 2023-12-26
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("rider")
@ApiModel(value = "Rider对象", description = "")
public class Rider implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("骑手id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("所属站长id")
    @TableField("stationmaster_id")
    private Long stationmasterId;

    @ApiModelProperty("手机号码区号前缀")
    @TableField("phone_area_code")
    private String phoneAreaCode;

    @ApiModelProperty("手机号/登录用户名")
    @TableField("phone_number")
    private String phoneNumber;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("骑手姓名")
    @TableField("full_name")
    private String fullName;

    @ApiModelProperty("骑手类型（ 1专送 2众包）")
    @TableField("type")
    private Short type;

    @ApiModelProperty("-1已冻结  0待审核、1正常")
    @TableField("state")
    private Short state;

    @ApiModelProperty("身份证")
    @TableField("id_card")
    private String idCard;

    @ApiModelProperty("0 下线中 1 接单中")
    @TableField("work_status")
    private Short workStatus;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
